package com.wpre.blogsystem.service;

import com.wpre.blogsystem.common.pojo.request.UserLoginParam;
import com.wpre.blogsystem.common.pojo.response.UserInfoResponse;
import com.wpre.blogsystem.common.pojo.response.UserLoginResponse;
import jakarta.validation.constraints.NotNull;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-06
 * Time: 17:06
 */
public interface UserService {

    UserLoginResponse login(UserLoginParam user);

    UserInfoResponse getUserInfoById(@NotNull Integer userId);

    UserInfoResponse getAuthorInfo(@NotNull Integer blogId);

    boolean register(UserLoginParam user);
}
